
<?php 
    if($template->get('aProduct')){$aProduct = $template->get('aProduct'); ?>
    <div class="item hotdeal_product_layout" val="<?php echo $aProduct['uri']; ?>">
        <div class="item_swap">
            <div class="item_content">
                <div class="image_content">
                    <a href="<?php echo $aProduct['uri']; ?>">
                        <img class="not_show" src="<?php echo URL::getLink('upload/'.$aProduct['image']); ?>" alt="">
                    </a>
                </div>
                <div class="item_info_panel">
                    <p class="product_title"><?php echo $aProduct['name']; ?></p>
                    <p class="product_price"><?php echo number_format($aProduct['price'],0,",","."); ?> <span class="product_donvi">đ</span></p>
                    <a href="<?php echo $aProduct['uri']; ?>" val="<?php echo URL::getShortLink('product','detail',$sId); ?>" class="link_button"><i class="fa fa-arrow-circle-right"></i></a>
                </div>
            </div>
            <?php echo ($template->get('title') ? '<div class="item_title">'. $template->get('title').'</div>' : ''); ?>
        </div>
    </div>
    <?php }?>